package com.hyr.springcloud.user.feign;

import com.hyr.springcloud.dto.OrderDTO;
import com.hyr.springcloud.service.IOrderService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient(value = "order")
public interface OrderClient extends IOrderService {
    @RequestMapping("/getOrder/{id}")
    public OrderDTO getOrder(@PathVariable(value = "id") int id);
}
